package com.chance.cc.crawler.development.command.script.yishengzhan;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.development.scripts.yishengzhan.YSZCrawlerScript;


public class YSZPublishScript {

    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.215",9599,"com.chance.cc.crawler.development.scripts.yishengzhan");

    public static void publishCrawlerNodeScript(){

        HttpPage page = scriptCommand.publishCrawlerScript2Consul(YSZCrawlerScript.domain);
        System.out.println("发布采集脚本：" + page.getRawText());
    }

    public static void main(String[] args) {
        publishCrawlerNodeScript();
    }
}
